package com.carlinfo.hospital.service;

import com.carlinfo.hospital.pojo.Person;
import com.carlinfo.hospital.util.PageInfoUtil;

import java.util.List;
import java.util.Map;

public interface PersonService
{
    /**
     * 保存一条数据
     * @return
     */
    int saveOnePersonService(Person person);

    /**
     * 查询多条数据
     * @param condMap
     * @return
     */
    List<Person> selectListPersonService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);

    /**
     * 查询一条数据
     * @param condMap
     * @return
     */
    Person selectOnePersonService(Map<String, Object> condMap);

    /**
     * 更新一条数据
     * @return
     */
    int updateOnePersonService(Person person);

    /*
     *删除一条数据
     */
    int deleteOnePersonService(Map<String, Object> condMap);
}
